<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="Access-Control-Allow-Origin" content="*" />

    <title></title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="favicon.ico">
    <link href="../../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="../../css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="../../css/style.css?v=4.1.0" rel="stylesheet">
    <link href="../../css/view/global.css" rel="stylesheet">
    <link href="../../css/plugins/summernote/summernote.css" rel="stylesheet">
    <link href="../../css/plugins/summernote/summernote-bs3.css" rel="stylesheet">
    <!--<link href="../../css/view/template.css" rel="stylesheet">-->
    <link rel="stylesheet" href="../../css/view/community/community-service.css">
    <link rel="stylesheet" href="../../css/view/community/community-health.css">
</head>

<body class="white-bg">
<div class="container-box">
    <div class="page-title">
        <div class="blue-bg-circle themeBgColor"></div>
        <div class="title">健康教育</div>
    </div>

    <!--选项卡切换-->
    <div id="nav-box">
        <ul id="nav-list">
            <li class="nav-item active">健康资料</li>
            <li class="nav-item " style="margin-left: 35px;">健康讲堂</li>
        </ul>
    </div>

    <!--健康教育-->
    <div class="item-box">
        <div class="third-title">
            <div class="border-left themeBgColor"></div>
            <div class="text">健康资料</div>
        </div>

        <div class="add-business themeColor" data-toggle="modal" data-target="#EducationModal" data-type="1">
            添加文章视频
        </div>

        <div class="business-list">
            <div class="border-left themeBgColor"></div>
            <div class="four-title">文章列表</div>
        </div>
        <div class="table-box">
            <table class="table table-striped">
                <thead class="themeBgColor">
                    <tr>
                        <th>名称</th>
                        <th>发表时间</th>
                        <th>作者</th>
                        <th>类型</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody id="Education-List">

                </tbody>
            </table>
            <div id="page2" class="page_div"></div>
        </div>
    </div>

    <!--健康讲堂-->
    <div class="item-box" style="display: none;">
        <div class="third-title">
            <div class="border-left themeBgColor"></div>
            <div class="text">健康讲堂</div>
        </div>

        <div class="add-business themeColor" data-toggle="modal" data-target="#lectureModal" data-type="1">
            添加讲堂视频
        </div>

        <div class="business-list">
            <div class="border-left themeBgColor"></div>
            <div class="four-title">文章列表</div>
        </div>
        <div class="table-box">
            <table class="table table-striped">
                <thead class="themeBgColor">
                    <tr>
                        <th>名称</th>
                        <th>发表时间</th>
                        <th>作者</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody id="lecture-List">

                </tbody>
            </table>
            <div id="page4" class="page_div"></div>
        </div>
    </div>

</div>

<!-- Modal Add Education-->
<div class="modal fade" id="EducationModal" tabindex="-1" role="dialog" aria-labelledby="classModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="educationTxt">添加内容</h4>
            </div>
            <div class="modal-body" style="height:500px;overflow-y:scroll;">
                <div class="switchBtnAre">
                    <text>请选择您要上传的内容：</text>
                    <div class="switchBtn" data-type="article">
                        <div class="round" ></div>
                        <text>文章</text>
                    </div>
                    <div class="switchBtn" data-type="video">
                        <div class="round"></div>
                        <text>视频</text>
                    </div>
                </div>
                <div class="form-group">
                    <label for="className">标题</label>
                    <input type="text" class="form-control"  placeholder="请输入标题" id="title">
                </div>
                <div class="form-group">
                    <label for="className">作者</label>
                    <input type="text" class="form-control"  placeholder="请输入作者" id="author">
                </div>
                <div id="educationImgAre">
                    <div class="add-banner-btn" style="margin-top: 20px">
                        <input type="file" accept="image/*" class="file-input" multiple="multiple" id="content-img-select">
                        <input type="hidden" id="upType">
                        <input type="hidden" id="educationId">
                        <div class="select-img themeBgColor">选择文章缩略图</div>
                        <div class="btn themeBgColor upload-content-img" id="upload-content-img">
                            图片上传
                        </div>
                    </div>
                    <div class="themeColor">(建议图片尺寸为：110px * 80px;&nbsp&nbsp建议上传图片最多三张)</div>
                    <div class="preview-content-img" id="content-img-show">
                        <div class="old"></div>
                        <div class="new"></div>
                    </div>
                </div>
                <div class="form-group" id="videoAre">
                    <label for="className">视频链接&nbsp&nbsp&nbsp&nbsp<span style="color: #b2b2b2">(只限上传路径，例如：http://weixin.fat.zgts99.com/alasun.mp4)</span></label>
                    <input type="text" class="form-control" placeholder="请输入视频路径" id="video">
                </div>
                <div id="summernote">
                    <div class="summernote">

                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn themeBgColor" id="educationBtn" >提交</button>
            </div>
        </div>
    </div>
</div>

<!-- Modal Add lectureModal-->
<div class="modal fade" id="lectureModal" tabindex="-1" role="dialog" aria-labelledby="classModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="lectureTxt">添加内容</h4>
            </div>
            <div class="modal-body" style="height:500px;overflow-y:scroll;">
                <div class="form-group">
                    <label for="className">标题</label>
                    <input type="text" class="form-control"  placeholder="请输入标题" id="title2">
                </div>
                <div class="form-group">
                    <label for="className">作者</label>
                    <input type="text" class="form-control"  placeholder="请输入作者" id="author2">
                </div>
                <div class="form-group">
                    <label for="className">视频链接&nbsp&nbsp&nbsp&nbsp<span style="color: #b2b2b2">(只限上传路径，例如：http://weixin.fat.zgts99.com/alasun.mp4)</span></label>
                    <input type="text" class="form-control" placeholder="请输入视频路径" id="video2">
                    <input type="hidden" id="lectureUpType">
                    <input type="hidden" id="lectureId">
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn themeBgColor" id="lectureBtn" >提交</button>
            </div>
        </div>
    </div>
</div>


<!-- 全局js -->
<script src="../../js/jquery.min.js?v=2.1.4"></script>
<script src="../../js/bootstrap.min.js?v=3.3.6"></script>
<script src="../../js/plugins/jeditable/jquery.jeditable.js"></script>

<!--paging-->
<script src="../../js/my-js/paging.js"></script>
<!-- SUMMERNOTE -->
<script src="../../js/plugins/summernote/summernote.min.js"></script>
<script src="../../js/plugins/summernote/summernote-zh-CN.js"></script>

<!-- 自定义js -->
<script src="../../js/my-js/global.js"></script>
<script src="../../js/view/main/articleList.js"></script>
</body>

</html>
